package samsung.sds.menuManagement.dao;

import java.util.List;

import samsung.sds.menuManagement.model.MenuEntity;

public interface MenuManagementMapper {
	/**
	 * 根据role_Id查询需要加载的菜单项
	 * @param username
	 * @return
	 */
	public List<MenuEntity> queryMenuList (String username);
	
	public String queryLevel(String parentId);
	
	public String selectRootId();

	public List<MenuEntity> queryMenuTree();

	public List<MenuEntity> queryDetail(String menuId); 
 
	public int deleteMenu(String menuId);

	public int queryChild(String menuId);
	
	public int queryRole(String menuId);

	public int insertMenu(MenuEntity menuentity);

	public int updateMenu(MenuEntity menuentity);

	public int insertMenuRole(MenuEntity menuentity);

	public int deleteMenuRole(String menuId);

	public List<MenuEntity> queryRoles(String menuId);
	
	public List<MenuEntity> queryMenuListByRoles(String roles);
	
}
